<!DOCTYPE html>
<html>
<head>
    <link rel="stylesheet" href="/Statics/Home/css/amazeui.min.css">

    <template file="Home/meta"/>
    <template file="Home/css"/>


</head>
<body>
<div class="am-g  common-border-bottom">

    <img src="{$info.thumb}" class="am-img-responsive"></a>


</div>
<div class="am-g  am-margin-bottom-xl">




    <article class="am-article am-padding-sm" >
        <div class="am-article-hd common-border-bottom">
            <h3 class="am-article-title">{$info.title}</h3>
        </div>

        <div class="am-article-bd am-margin-top-sm ">

            <div class="am-cf">

                <label class="am-u-sm-7" >剩余:</label>
                <div class="am-u-sm-5 am-text-right"> {$info.shengyu} {$info.danwei}</div>




            </div>

            <div class="am-cf">

                <label class="am-u-sm-7" >每人限领:</label>
                <div class="am-u-sm-5 am-text-right"> {$info.xian_num} {$info.danwei}</div>




            </div>

            <div class="am-cf">

                <label class="am-u-sm-7" >已参与人数:</label>
                <div class="am-u-sm-5 am-text-right"> {$info.canyu}</div>




            </div>




            <volist name="info['thumbs']" id="v">

                <img src="{$v}" alt="" class="am-img-responsive">

            </volist>


            {$info.content}
        </div>
    </article>




    <div data-am-widget="navbar" class="am-navbar am-cf am-navbar-index  common-border-top " style="height: 90px"
         id="">
        <switch name="info.jiedian">
            <case value="1" break="0或1">

                <a class="am-btn am-btn-block am-btn-success am-btn-lg"
                   href="{:U('User/Huodong/baoming',array('id'=>$info['id']))}">参加</a>
            </case>
            <case value="2">


                <a class="am-btn am-btn-block  am-btn-lg am-btn-default am-disabled    "
                   >已领完</a>
            </case>
            <case value="3">


                <a class="am-btn am-btn-block  am-btn-lg am-btn-default am-disabled   "
                  >已结束</a>
            </case>
            <case value="4">


                <a class="am-btn am-btn-block  am-btn-lg am-btn-success  "  href="{:U('User/Order/pay',array('order_sn'=>$info['order_sn']))}"
                  >已参加,前往付款</a>
            </case>

            <case value="5">


                <a class="am-btn am-btn-block  am-btn-lg am-btn-success " href="{:U('Home/Product/show',array('id'=>$info['product_id']))}"
                >已试吃,前往购买</a>
            </case>
        </switch>


        <template file="Home/bottom_nav" />
    </div>



</div>


</div>
<template file="Home/js"/>

</body>
</html>